x11: Rework Visual selection
authorBenjamin Otte <otte@redhat.com>
Sun, 13 Jun 2021 15:34:55 +0000 (17:34 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 22 Jul 2021 14:06:06 +0000 (16:06 +0200)
commitca8d9fbe0b4978d942f587d5cf4bdce9c87096d2
tree72596b3b60b911511662e7cfa6b8b610ef4f2ec7
parent62bac44a2108ceadbf659ce56f64bf14429fc5d2
x11: Rework Visual selection

Instead of going via GdkVisual, doing a preselection and letting the GL
initialization improve it, let the GL initialization pick an X Visual
directly using X Visual code directly.

The code should select the same visuals as before as it tries to apply
the same logic, but it's a rewrite, so I expect I messed something up.
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkglcontext-egl.c
gdk/x11/gdkglcontext-glx.c
gdk/x11/gdkglcontext-x11.c
gdk/x11/gdkglcontext-x11.h